package ysomap.exploits.rmi.component;

import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;

/**
 * @author wh1t3P1g
 * @since 2020/2/25
 */
public class TrustAllSSL implements X509TrustManager {
    private static final X509Certificate[] ANY_CA = {};
    public X509Certificate[] getAcceptedIssuers() { return ANY_CA; }
    public void checkServerTrusted(final X509Certificate[] c, final String t) { /* Do nothing/accept all */ }
    public void checkClientTrusted(final X509Certificate[] c, final String t) { /* Do nothing/accept all */ }
}
